package com.kk.bridge;

/**
 * @author 王志强
 * @date 2021-12-14
 */
public class Enter {
    public static void main(String[] args) {
        Xiaomi xiaomi = new Xiaomi();
        Vivo vivo = new Vivo();

        // 桥接，灵活组合 手机类型和品牌
        FolderType phone1 = new FolderType(xiaomi);
        phone1.open();
        phone1.call();
        phone1.close();

        FolderType phone2 = new FolderType(vivo);
        phone2.close();

        UpRightType phone3 = new UpRightType(vivo);
        phone3.call();
        phone3.close();
    }
}
